package com.yipinhouse.reception.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.reception.client.param.InsertResoldApartmentWebParam;
import com.yipinhouse.reception.client.param.UploadResoldHouseWebParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "houseRecetionManageClient",name="reception",path = "reception")
public interface HouseRecetionManageClient {

    /**
     * 上传出租房源
     * @param param
     * @return
     */
    @PostMapping("/uploadResoldHouse")
    Result uploadResoldHouse(@RequestBody UploadResoldHouseWebParam param);

    /**
     * 新增二手房房源
     * @param insertResoldApartmentParam
     * @return
     */
    @PostMapping("/insertResoldApartment")
    Result insertResoldApartment(@RequestBody InsertResoldApartmentWebParam insertResoldApartmentParam);
}
